package com.superatom.springboot;

import com.superatom.springboot.event.MyApplicationEnvironmentPreparedEventListener;
import com.superatom.springboot.event.MyApplicationStartedEventListener;
import com.superatom.springboot.event.MyApplicationStartingEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationListener;

import java.util.ArrayList;
import java.util.List;

@SpringBootApplication
public class SpringbootApplication {

	public static void main(String[] args) {
		// SpringApplication.run(SpringbootApplication.class, args);

		SpringApplication app = new SpringApplication(SpringbootApplication.class);
		app.addListeners(new MyApplicationStartingEventListener());
		app.addListeners(new MyApplicationStartedEventListener());
		app.addListeners(new MyApplicationEnvironmentPreparedEventListener());
		app.run(args);
	}
}
